{% extends "_layout.html" %}
{% import "component/statistics.njk" as statistics %}

{# 样式代码 #}
{% block style %}
<title>布置作业-选择布置方式</title>
{% endblock %}

{# bodyd代码#}
{% block body %}
<div class="mui-content">
    <ul class="mui-table-view mui-table-view-chevron">
        <li class="mui-table-view-cell mui-media">
            <a class='mui-navigate-right' href="javascript:void(0)" onclick="js_button(this)" data-type="1">
                <div class="mui-media-body">
                    统一出题
                    <p class='mui-ellipsis'>所有学生将获得同样一份作业。<br />需要选择出题范围，设置每个考点的题量并挑选。</p>
                </div>
            </a>
        </li>
        <li class="mui-table-view-cell mui-media">
            <a class="mui-navigate-right" href="javascript:void(0)" onclick="js_oto(this)" data-type="2">
                <div class="mui-media-body">
                    1对1出题
                    <p class='mui-ellipsis'>每位学生将获得不同的作业。<br />只需选择出题范围和数量，系统即可根据学生<br />情况生成个性化作业</p>
                </div>
            </a>
        </li>
    </ul>

</div>
{% endblock %}

{#js代码#}
{% block js %}
<script>
    sessionStorage.removeItem('typeJob');
    sessionStorage.removeItem('teacherClazzId');
    sessionStorage.removeItem('clazzId');
    sessionStorage.removeItem('dataid');
    sessionStorage.removeItem('studentIds');
    function js_button(e){
        sessionStorage.setItem('typeJob',$(e).data('type'));
        window.location.replace('/arrhomework1');
    }

    function js_oto(e){
        sessionStorage.setItem('typeJob',$(e).data('type'));
        window.location.replace('/otohomework1');
    }
</script>
<!--flotdemo-->
{% endblock %}
